package com.opennice.quartz.cron.job;

import org.quartz.JobExecutionContext;
import org.springframework.scheduling.quartz.QuartzJobBean;

public class QuartzDemo extends QuartzJobBean {
    private JobData jobData; //JobData为自定义类
    public void executeInternal(JobExecutionContext context){
       System.out.println(jobData.getData()+" is executed");
    }
    public JobData getJobData() {
       return jobData;
    }
    public void setJobData(JobData jobData) {
       this.jobData = jobData;
    }
}